|
User Details |
message
|
|
simon
post date:
2008-12-16 12:37:46
|
|
HirnI'm trying to create a simple "on (release) go to and play (1)"rnon a button inside a movie clip that I have put in a ScrollPane.rnrnBut nothing happens when the button is pushed.rnrnwhen I change to getURL instead of gotoandplay, everything works just like id should. But that’s not what I’m after.rnrnI’m I using the wrong kind of command? Isn’t it possible to use “gotoandplay” when a button is embedded inside a movie clip?rnrnPleas help me.. I’m desperate and the deadline is this Friday 19/12 2008rnrnthanksrn/Simonrn
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2008-12-17 11:09:22
|
Hello Simon,
Please send me your FLA so I can figure out better what's happening and give you some help.
Best regards,
Andrei Rinciog
|
|
|
simon
post date:
2008-12-18 05:02:24
|
that would be great, but how do i send you may FLA file?
I will also try to explain myself better:
I have made a button inside a movieclip but I can’t get the button to take me to a frame outside the movieclip. When I use:
on (press) {
gotoAndStop(“Scene 1”, 2);
}
It still takes me to frame 2 inside the movieclip when I’m trying to go back to the start scene.
I also tryed this:
on (press) {
_root.gotoAndStop(2);
}
it worked getting me to my root scene, but i'm wan't to go to another scene. it doesn't help to do it like this:
on (press) {
_root.gotoAndStop("Scene_2, 2);
}
then notning happens at all.
what type of script am I supposed to use when i whan to go?
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2008-12-18 08:00:43
|
Hello Simon,
I hope I understand correctly. You have a movieclip on the stage and inside that movieclip a button. If you click the button you want to move to a frame on the main timeline (_root).
There are two ways on how you can do this.
The first one is to put the actionscript directly on the button. The code should look something like this :
on(press) {
_root.gotoAndPlay(Frame_Number);
};
or
on(press) {
this._parent._parent.gotoAndPlay(Frame_Number);
};
The second way to do this ( and actually a better way, as you have all your actionscript concentrated inside only one frame), is to put the actionscript on the first frame of the main timeline (_root).
The code should look something like this :
Container_instance_name.button_instance_name.onRelease = function() {
gotoAndPlay(frame_Number);
}
I’ve sent you a sample FLA file on your email.
If you need any more help feel free to write us again.
Kind regards,
Andrei Rinciog
|
|
|
guilovsh
post date:
2009-07-04 02:24:51
|
|
|
Edd Sedgwick
post date:
2011-01-19 14:31:14
|
AS2 CS5
Hi there, i am experiencing a similar problem! (beginner student of flash!!) i have a movie clip called MCMAINCLIP and within that MC i have MCPhotos.
I am trying to add script to a button in MCMAINCLIP allowing me to control the timeline of MCPhotos.
I am using:
on(release){
_MCPhotos.gotoAndPlay("IMG1");
}
i have also tried: on(release){
_root_MCPhotos.gotoAndPlay("IMG1");
}
but i am having no luck what so ever!
all the script is trying to do is move to specified frame label in MCPhotos.
Any help would be massively appreciated.
Thanks in advance
Edd
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2011-01-20 04:15:11
|
Hello Edd,
First of all, to use that event listener you have to place the script on the button instance you want to use. Not on a frame from the MCMAINCLIP.
Because the script is placed on a button, you need to use the reference to its parent in order to access the MCPhotos movieclip.
Try something like this:
on(release) {
_parent.MCPhotos.gotoAndPlay("IMG1");
}
Make sure that the instance name of the photos movieclip is "MCPhotos".
Tell me if you need more help.
Regards,
Andrei Rinciog
|
|
|
Edd Sedgwick
post date:
2011-01-20 07:38:14
|
Hi Andrei,
Thanks for your help, i tried it but it still doesn't work. I have no idea why because it all seems right. is there an option in flash's properties that disabled MC control maybe?
If u open MCPhotos and hit enter it will preview from each label so i'm pretty sure everything is ok within MCPhotos.
Basically all it is, is a simple gallery, where thumbs and MCPhotos are placed in MCMAINCLIP. The thumbs are buttons and when they are pressed i just want it to jump so a specific place in MCPhotos timeline. I have the frames labeled as names!
im well and truly stuck!!
Edd
|
|
|
Edd Sedgwick
post date:
2011-01-21 02:56:28
|
I could send the .FLA if that would help? many thanks
Edd
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2011-01-21 03:58:00
|
Hello Edd,
Yes, please send the FLA by email at support at extendstudio.com.
What do you mean here "is there an option in flash's properties that disabled MC control maybe"?
Regards,
Andrei Rinciog
|
|
|
william
post date:
2011-09-06 01:50:15
|
hello I have a button(Page) that is in a Movie Clip(forward4444) that has five frame to it that is controlled by a MC button to give the appearance of a changing screen when clicked on,
the Button(Page) is on the first frame inside the movie clip(Forward4444) witch has a stop(); function to allow for the other function to take place.
i am trying to allow the button on the first frame of the movie clip to access a website.
I have but the following action script on the first frame of the root time line.( this .fla has several layers)
this.site.content.forward4444.Page.onRelease=function(){
getURL("http://www.gotdancemusic.com/contact");
}
|
|